import Taro from '@tarojs/taro'
import {
  COUPON_LIST, COUPON_RECEIVE
} from '@constants/coupon'

const INITIAL_STATE = {
  coupon: {}
}

export default function coupon(state = INITIAL_STATE, action) {
  switch(action.type) {
    case COUPON_LIST:
    case COUPON_RECEIVE: {
      return { ...state }
    }
    default:
      return state
  }
}
